const router = require('koa-router')()
const achievingRate = require('../service/controller/achievingRate')
const achievingRateExcel = require('../service/controller/achievingRateExcel')

// 实验接口
router.post('/shiyan', achievingRate.shiyan)
// 实验导出
router.post('/shiyanExcel', achievingRateExcel.shiyanExcel)
// 全网到全网
router.post('/AchievingRateQuanwang', achievingRate.AchievingRateQuanwang)
// 全网到全网导出
router.post('/AchievingRateQuanwangExcel', achievingRateExcel.AchievingRateQuanwangExcel)
// 转运及时率明细
router.post('/transferTimelinessDetailRate', achievingRateExcel.transferTimelinessDetailRate)
// 转运及时率明细导出
router.post('/transferTimelinessDetailRateExcel', achievingRateExcel.transferTimelinessDetailRateExcel)


// router.get('/AchievingRateQuanwang', async (ctx) => {
//     console.log(ctx)
//     ctx.body = {
//         title: 'koa2 json'
//     }
// })

module.exports = router